
<div class="yourAccMain">
  <h6>Select a shipping address</h6>
  <div class="yourAccMain_L_in">
    <?php
			if(isset($address) and ($address) and sizeof($address))
				{
		  ?>
                            <div class="yourAccMain_L_in_L">
                              <h2>Address Book</h2>
                            </div>
                            <div class="yourAccMain_L_in_R">
                              <?php 
                                            foreach($address as $addres)
                                                {
                            ?>
                                                      <div class="def_div f_left">
                                                        <div class="acc_form_2 ">
                                                          <div class="seller_right_pro"> <span class="text_form1">
                                                           <b><?php echo $addres['Address']['name']; ?> </b>
                                                           <br>
                                                            <?php echo $addres['Address']['add1']; ?><br>
                                                            <?php echo $addres['Address']['add2']; ?><br>
                                                            <?php echo $addres['Address']['city']; ?><br>
                                                            <?php echo $addres['Address']['state']; ?><br>
                                                            <?php echo $addres['Country']['country_name'].' ( '.$addres['Country']['country_code'].' )'; ?><br>
                                                            <?php echo $addres['Address']['zip']; ?><br>
                                                            Phone: <?php 
                                                                        echo $addres['Address']['phone']; 
                                                                        $encode_id = base64_encode($addres['Address']['id']);
                                                                    ?><br>
                                                            </span> </div>
                                                        </div>
                                                        <div class="acc_form_1 ">
                                                          <?php 
                                                            echo $html->link('Edit',array('controller'=>'users', 'action'=>'add_address', 
                                                            'address'=>$encode_id), array('class'=>'org_link f_left'));
                                                         ?>
                                                        </div>
                                                      </div>
                              <?php
                                                }
                                ?>
                            </div>
                            <?php
				}
		?>
    <div class="pad_10"></div>
    <div class="common_border1"></div>
